import request from '@/utils/request'

export function listNormal(query) {
  return request({
    url: '/shop/customer/listNormal',
    method: 'get',
    params: query
  })
}

export function listInner(query) {
  return request({
    url: '/shop/customer/listInner',
    method: 'get',
    params: query
  })
}

export function getNormal(id) {
  return request({
    url: '/shop/customer/normal/' + id,
    method: 'get'
  })
}

export function getInner(id) {
  return request({
    url: '/shop/customer/inner/' + id,
    method: 'get'
  })
}

export function addInnerCustomer(data) {
  return request({
    url: '/shop/customer/addInner',
    method: 'post',
    data: data
  })
}

export function addNormalCustomer(data) {
  return request({
    url: '/shop/customer/addNormal',
    method: 'post',
    data: data
  })
}

export function updateNormalBalance(data) {
  return request({
    url: '/shop/customer/updateNormalBalance',
    method: 'put',
    data: data
  })
}

export function updateInnerBalance(data) {
  return request({
    url: '/shop/customer/updateInnerBalance',
    method: 'put',
    data: data
  })
}

export function updateNormalCustomer(data) {
  return request({
    url: '/shop/customer/updateNormalCustomer',
    method: 'put',
    data: data
  })
}

export function updateInnerCustomer(data) {
  return request({
    url: '/shop/customer/updateInnerCustomer',
    method: 'put',
    data: data
  })
}

export function delNormalCustomer(id) {
  return request({
    url: '/shop/customer/' + id,
    method: 'delete'
  })
}

export function delInnerCustomer(id) {
  return request({
    url: '/shop/customer/' + id,
    method: 'delete'
  })
}
